<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>案件档案</title>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="${contextPath}/resources/css/style.default.css" rel="stylesheet">
    <script src="${contextPath}/resources/js/jquery-1.11.1.min.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="${contextPath}/resources/js/html5shiv.js"></script>
    <script src="${contextPath}/resources/js/respond.min.js"></script>
    <![endif]-->
    <script src="${contextPath}/resources/js/jquery-migrate-1.2.1.min.js"></script>
    <script src="${contextPath}/resources/js/jquery-ui-1.10.3.min.js"></script>
    <script src="${contextPath}/resources/js/bootstrap.min.js"></script>
    <script src="${contextPath}/resources/js/modernizr.min.js"></script>
    <script src="${contextPath}/resources/js/jquery.sparkline.min.js"></script>
    <script src="${contextPath}/resources/js/toggles.min.js"></script>
    <script src="${contextPath}/resources/js/retina.min.js"></script>
    <script src="${contextPath}/resources/js/jquery.cookies.js"></script>

    <script src="${contextPath}/resources/js/morris.min.js"></script>
    <script src="${contextPath}/resources/js/raphael-2.1.0.min.js"></script>

    <script src="${contextPath}/resources/js/custom.js"></script>
    <script src="${contextPath}/resources/js/jquery.gritter.min.js"></script>
    <style type="text/css">
        html {
            overflow-x: hidden;
        }
    </style>
</head>
<body style="background:none;">
<c:if test="${empty param.mini}">
    <div class="pageheader">
        <a href="javascript:window.history.go(-1);" class="btn btn-default pull-right">返回</a>

        <h2>案件档案列表</h2>
    </div>
</c:if>
<div class="contentpanel">
    <div class="row">
        <c:forEach items="${listDto.list}" var="item">
            <div class="col-md-12 well well-sm">
                <form class="form-horizontal form-bordered table-condensed" style="margin-bottom:0;">
                    <div class="panel panel-default"
                         style="border:1px solid #d0d0d0;background:#F7F7F7;margin-bottom:0">

                        <div class="panel-body panel-body-nopadding">

                            <div class="form-group">
                                <label class="col-sm-1 control-label">操作员工:</label>

                                <div class="col-sm-1">
                                    <p class="form-control-static"><span
                                            class="label label-success">${item.name}</span></p>
                                </div>
                                <label class="col-sm-2 control-label">旧/新处置员工:</label>

                                <div class="col-sm-3">
                                    <p class="form-control-static">
                                        <c:forEach items="${item.oldOwnerList}" var="owner">
                                            <span class="label label-default">${owner.name}</span>
                                        </c:forEach>
                                        / <c:forEach items="${item.newOwnerList}" var="owner">
                                        <span class="label label-primary">${owner.name}</span>
                                    </c:forEach>
                                    </p>
                                </div>
                                <label class="col-sm-1 control-label">档案类型:</label>

                                <div class="col-sm-1">
                                    <p class="form-control-static">
                                        <c:if test="${item.type.report}">
                                            <span class="label label-primary">${item.type.label}</span>
                                        </c:if>
                                        <c:if test="${item.type.cancelled}">
                                            <span class="label label-danger">${item.type.label}</span>
                                        </c:if>
                                        <c:if test="${item.type.assignment}">
                                            <span class="label label-info">${item.type.label}</span>
                                        </c:if>
                                        <c:if test="${item.type.finish}">
                                            <span class="label label-success">${item.type.label}</span>
                                        </c:if>
                                        <c:if test="${item.type.submitPending}">
                                            <span class="label label-success">${item.type.label}</span>
                                        </c:if>
                                        <c:if test="${item.type.rejectPending}">
                                            <span class="label label-danger">${item.type.label}</span>
                                        </c:if>
                                    </p>
                                </div>
                                <label class="col-sm-1 control-label">时间:</label>

                                <div class="col-sm-1">
                                    <p class="form-control-static">
                                        <span class="label label-default">${item.createDateTime}</span>
                                    </p>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">档案描述:</label>

                                <div class="col-sm-11">
                                    <p class="form-control-static">${item.content}</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </c:forEach>

    </div>
</div>
</body>
</html>
